import request from '@/utils/request'
export const partnerPoint = () => request({
  url: '/api/vm-service/node/nodeCollect'
})

// 获取当时工单汇总信息(人员统计头部信息)
//  /api/task-service/task/taskReportInfo/:start/:end
export const workListStatistics = (start, end) => request({
  url: `/api/task-service/task/taskReportInfo/${start}/${end}`
})

// 获取一定时间范围之内的订单总数
// Path： /api/order-service/report/orderCount

export const orderCount = (start, end) => request({
  url: '/api/order-service/report/orderCount',
  params: {
    start,
    end
  }
})
// 获取一定时间范围之内的收入
// Path： /api/order-service/report/orderAmount
export const orderAmount = (start, end) => request({
  url: '/api/order-service/report/orderAmount',
  params: {
    start,
    end
  }})

// 获取销售额统计
// Path： /api/order-service/report/amountCollect/:collectType/:start/:end
export const saleAmount = (params) => request({
  url: `/api/order-service/report/amountCollect/${params.collectType}/${params.start}/${params.end}`
})
